package net.betou.cms.dao.assist;

import java.util.List;

import net.betou.cms.entity.assist.CmsDictionary;
import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;

public interface CmsDictionaryDao{
	public Pagination getPage( String queryType, int pageNo, int pageSize );

	public List< CmsDictionary > getList( String type );

	public List< String > getTypeList( );

	public CmsDictionary findById( Integer id );

	public CmsDictionary findByValue( String type, String value );

	public CmsDictionary save( CmsDictionary bean );

	public CmsDictionary updateByUpdater( Updater< CmsDictionary > updater );

	public CmsDictionary deleteById( Integer id );

	public int countByValue( String value, String type );
}